<%@ page pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<script type="text/javascript" src="scripts/apps/fileserver/index.js"></script>
<script type="text/javascript" src="scripts/apps/fileserver/folder/myfolder.js"></script>

<link rel="stylesheet" type="text/css" href="css/apps/fileserver/myfolder.css" />
<button id="startFile" type="button">开始上传</button>
<div id="folderPath"></div>
<div id="folderdiv" style="color: black; width: 100%;">

<table style="color: black; width: 100%;font-size:13px;">
    <tbody>

     <c:forEach items="${beans}" var="folder" varStatus="s" >
			<c:if test="${s.index % 4 ==0}">
			  <tr>
			</c:if>
			<td>
				<img alt="${folder.text}" src="${sbase}images/006.png"
					style="width: 25px; height: 25px;" />
				<a href="javascript:;"
					onclick="loadFolder('${folder.id}','${folder.text}');return false">
				  <span style="color:#363636;font-size:13px">
				  ${folder.text} 
				  </span>		
						</a>
				<img alt="删除" style="margin-left:20px;cursor: hand;"
					src="${sbase}images/removeme.gif"
					onclick="removeFolder('${folder.id}','${folder.text}');return false;" />

			</td>
			<c:if test="${(s.index+1) % 4 ==0}">
			  </tr>
			</c:if>
		</c:forEach>
 
   </tbody>
   <tfoot>
   <tr><td></td></tr> <tr><td></td></tr> <tr><td></td></tr>
    <tr><td>共有 ${fn:length(beans)} 个文件夹</td></tr>
   </tfoot>
</table>
	
</div>
<form class="search">
<input type="hidden" name="searchMap['_search']" value="_search"/>
<fieldset>
<legend>查询</legend>
<ul><li>
<label>文件名: <input name="searchMap['title']"/></label>-<select name="operMap['title']">
                                                                  <option value="and">AND</option> 
                                                                  <option value="or">OR</option> 
                                                                   </select>
 <label>上传日期<input name="searchMap['dateStart']" class="datepicker" /></label>
 -<label><input class="datepicker" name="searchMap['dateEnd']" /></label>                                  
<button type="button" id="sbtn">查询</button><button type="reset">重置</button></li>
</ul>
                                
</fieldset>
</form>
<div id="jqgrid">
	<table id="list"></table>
	<div id="pager"></div>
</div>